package cn.tansanqinger.service.knowledge;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Service;

import cn.tansanqinger.pojo.Collecttopic;
import cn.tansanqinger.pojo.Knowledge;
import cn.tansanqinger.util.PageData;

@Service
public interface IKnowledgeService {
	//随机读取一条数据
	public Knowledge selectOne(HttpServletRequest request);
	
	//收藏
	public PageData collectKnowledge(HttpServletRequest request);
	
	//屏蔽
	public PageData shieldKnowledge(HttpServletRequest request);
	
	//举报
	public PageData reportKnowledge(HttpServletRequest request);
	
	//提出疑问
	public PageData queryKnowledge(HttpServletRequest request);
	
	//是否被收藏
	public Collecttopic isCollectKnowledge(int o1, int o2);
}
